package com.drink.yan.intf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meta.framework.common.annotation.Excel;
import com.meta.framework.copy.Copyable;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 代理
 *
 * @Title:
 * @Package: com.drink.yan.intf.entity.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2023/11/25 11:16
 * @Version: v2.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class YanUserAgency extends Copyable {

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	private Long userId;

	private String opSource;

	private Long schAreaId;

	@Excel(name = "校区", sort = 3)
	private String schAreaName;

	@ApiModelProperty("当前所在学校")
	private Long currentSchId;

	@Excel(name = "学校", sort = 4)
	@ApiModelProperty("当前所在学校")
	private String currentSchName;

	@ApiModelProperty("当前所在专业")
	private String currentSpeId;

	@Excel(name = "专业", sort = 5)
	@ApiModelProperty("当前所在专业")
	private String currentSpeName;

	@Excel(name = "入学年份", sort = 6)
	@ApiModelProperty("入学年份")
	private String inSchYear;

	@Excel(name = "状态", sort = 8, readConverterExp = "checking=审核中,check_fail=审核失败,check_succ=审核成功")
	@ApiModelProperty("状态, create:已申请，fail:申请失败，success:申请成功")
	private String status;

	@Excel(name = "审核时间", sort = 10)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime checkTime;

	private String delFlag;
	private Long createBy;

	@Excel(name = "添加时间", sort = 9)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime createTime;
	private Long updateBy;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime updateTime;
	private String remark;
}
